package com.power.using.askapp.activity;

import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.view.WindowManager;

import com.jaeger.library.StatusBarUtil;
import com.power.using.askapp.R;
import com.power.using.askapp.base.BaseActivity;
import com.power.using.askapp.fragment.MainFragment;


public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //防止fragment中,当点击edittext时,把底部导航栏顶上去
        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);


        setContentView(R.layout.activity_main);
        StatusBarUtil.setColor(this, ContextCompat.getColor(this, R.color.blue_300),0);
        if (findFragment(MainFragment.class) == null) {
            loadRootFragment(R.id.fl_container, MainFragment.newInstance());
        }
    }

    @Override
    protected void initContentView(Bundle savedInstanceState) {

    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initLogic() {

    }
}
